package com.codeoss.module.ir.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codeoss.framework.service.impl.BaseService;
import com.codeoss.module.ir.dao.IrModelMapper;
import com.codeoss.module.ir.model.IrModel;
import com.codeoss.module.ir.service.IIrModelService;


@Service
public class IrModelService extends BaseService<IrModelMapper, IrModel> implements  IIrModelService{

	@Override
	public IrModel getIrModelByTableName(String tableName) {
		// TODO Auto-generated method stub
		QueryWrapper<IrModel> query=new QueryWrapper<IrModel>();
		query.eq("table_name", tableName);
		return getOne(query);
	}
	
}
